package com.ltt.service.impl;

import com.ltt.dao.pojo.User;
import com.ltt.mapper.UserInfoMapper;
import com.ltt.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ‘李天泰’
 * @version 1.0
 * @description: TODO
 * @date 2023/5/3 16:12
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public void plusIntegral(User user) {
        userInfoMapper.updateIntegral(user);
    }

    @Override
    public User findUserById(String openid) {
        return userInfoMapper.findUserById(openid);
    }

    @Override
    public void updateFans(User user) {
        userInfoMapper.updateFans(user);
    }

    @Override
    public void updateAttention(User user) {
        userInfoMapper.updateAttention(user);
    }

    @Override
    public void setPic(User user) {
        userInfoMapper.setPic(user);
    }

    @Override
    public void setNickName(User user) {
        userInfoMapper.setNickName(user);
    }

    @Override
    public void changeJiFen(User user) {
        userInfoMapper.changeJiFen(user);
    }

}
